#pragma once 

//服务器禁止拷贝
class NoCopy
{
    public:
    NoCopy(){}
    NoCopy( NoCopy& copy)=delete;
    NoCopy( NoCopy&& copy)=delete;
   NoCopy operator=(const NoCopy& copy)=delete;
};



enum ExitCode
{
    OK=0,
    LISTEN_ERR,
    BIND_ERR,
    ACCEPT_ERR,
    READ_ERR,
    WRITE_ERR,
    FORK_ERR,
    SOCKET_ERR,
    CLOSE_ERR,
    RECV_ERR,
    CONNECT_ERR
   




};